@import './sidebar.scss';

html,
body,
dl,
dd,
dt,
p {
  margin: 0;
  padding: 0;
}

body {
  height: 100%;
  color: #1f263e;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Microsoft YaHei, Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

html {
  height: 100%;
  box-sizing: border-box;
}
img {
  display: block;
}
#app {
  height: 100%;
  width: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0 !important;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}
input {
  line-height: inherit;
}
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #f5f5f5 inset !important;
}

.row {
  display: flex;
  flex-flow: row nowrap;
  overflow-x: hidden;
}

.col {
  display: flex;
  flex-flow: column nowrap;
}

.page-container {
  display: flex;
  flex-flow: column nowrap;
  background: #fff;
  width: 100%;
  // min-height: calc(100vh - 120px);
  flex: 1;
  padding: 20px;
  box-shadow: 0px 10px 20px 5px rgba(164, 166, 167, 0.2);
  border-radius: 8px;
}

.public_tree .el-tree {
  width: 100%;
  height: 100%;
  overflow-x: auto;
}
.public_tree .el-tree > .el-tree-node {
  display: inline-block;
  min-width: 100%;
}

.public_archive {
  border-top: solid 1px #e4e7ed;
  .public_archive_left {
    height: 100%;
    padding: 0 10px;
    ul {
      padding: 0;
      margin: 0;
      height: 600px;
      overflow-y: auto;
    }
    ul,
    li {
      list-style: none;
    }
    .public_archive_left_tit {
      height: 60px;
      line-height: 60px;
      text-align: center;
      font-size: 16px;
      font-weight: 600;
      color: #000;
      border-bottom: solid 1px #e4e7ed;
    }
    .public_archive_left_ul {
      li {
        display: flex;
        align-items: center;
        margin-top: 20px;
        padding: 10px 15px;
        cursor: pointer;
        i {
          color: #1890ff;
          font-size: 20px;
        }
        span {
          margin-left: 10px;
          font-size: 14px;
          font-weight: 400;
          color: #011f3b;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
      }
    }
  }
  .public_archive_right {
    .public_archive_right_top {
      height: 60px;
      line-height: 60px;
      text-align: right;
      border-bottom: solid 1px #e4e7ed;
    }
    .public_archive_main {
      display: flex;
      .public_archive_main_left {
        background: #f8f9fb;
        padding: 0 25px;
        overflow-y: auto;
        height: calc(100vh - 250px);
        .public_archive_main_img {
          cursor: pointer;
          border: 2px solid #e5e5e5;
          margin-top: 20px;
          width: 129px;
          height: 179px;
          img {
            width: 100%;
            height: 100%;
          }
        }
        .public_archive_img_active {
          border: 4px solid #1890ff;
        }
      }
    }
  }
}

.publick-archive_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  .public_archive_left_tit {
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    border-bottom: solid 1px #e4e7ed;
  }
}
.public_archive_active {
  background: #f8f9fb;
  border-radius: 4px;
}
.public_archive_print {
  .public_subpage {
    width: 400px;
    height: 600px;
  }
}
.public_print {
  flex: 2;
  .public_page {
    padding-top: 10px;
    .public_subpage {
      border: 1px solid #e4e7ed;
      box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2);
      border-radius: 5px;
      margin: 0 auto;
    }
  }
}

@page {
  size: A4;
  margin: 0;
}
@media print {
  .public_page {
    margin: 0;
    width: 21cm;
    height: 29.7cm;
    min-height: 29.7cm;
    padding: initial;
  }
  .public_subpage {
    width: 21cm;
    height: 29.7cm;
    min-height: 29.7cm;
    border: initial;
  }
}
// 生成padding类名
$i: 50;
@while $i > 0 {
  .pad#{$i} {
    padding: 1px * $i;
  }
  $i: $i - 5;
}
$i: 50;
@while $i > 0 {
  .pl#{$i} {
    padding-left: 1px * $i;
  }
  $i: $i - 5;
}
$i: 50;
@while $i > 0 {
  .pr#{$i} {
    padding-right: 1px * $i;
  }
  $i: $i - 5;
}
$i: 50;
@while $i > 0 {
  .pt#{$i} {
    padding-top: 1px * $i;
  }
  $i: $i - 5;
}
$i: 50;
@while $i > 0 {
  .pb#{$i} {
    padding-bottom: 1px * $i;
  }
  $i: $i - 5;
}

// 生成margin类名
$i: 50;
@while $i > 0 {
  .mar#{$i} {
    margin: 1px * $i;
  }
  $i: $i - 5;
}
$i: 50;
@while $i > 0 {
  .ml#{$i} {
    margin-left: 1px * $i;
  }
  $i: $i - 5;
}
$i: 50;
@while $i > 0 {
  .mr#{$i} {
    margin-right: 1px * $i;
  }
  $i: $i - 5;
}
$i: 50;
@while $i > 0 {
  .mt#{$i} {
    margin-top: 1px * $i;
  }
  $i: $i - 5;
}
$i: 50;
@while $i > 0 {
  .mb#{$i} {
    margin-bottom: 1px * $i;
  }
  $i: $i - 5;
}

.page-operation-btn {
  margin-top: 20px;
  text-align: center;
}
